package ${packageName};

import org.springframework.context.annotation.Bean;

import com.goldgov.kcloud.KcloudApplication;
import com.goldgov.kcloud.api.ApiDocket;
import com.goldgov.kcloud.api.ApiOverview;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import springfox.documentation.spring.web.plugins.Docket;

@EnableFeignClients
public class Application extends KcloudApplication {
	
	public static void main(String[] args) {
		KcloudApplication.startup(Application.class, args);
	}
	
	<#list moduleList as module>
	@Bean
	public Docket api${module.name}Docket() {
		ApiOverview apiOverview = new ApiOverview("${module.explain}", "${module.explain}");
		apiOverview.setContact("${userName}");
		ApiDocket apiDocket = new ApiDocket("${module.explain}", "${REQUEST_PREFIX!}/${module.name ? uncap_first}.*");//接口映射请求配置
		return apiDocket.build(apiOverview);
	}
	
	</#list>
}
